#pragma once

class MainWindow
{
public:
	MainWindow(Game& game);
	~MainWindow(void);

	void create(int width, int height, const std::string& text);

	HWND getHandle() const;

	void show();
	void close();

	bool isRunning();
	
	void update();

	void doEvents();

	static LRESULT CALLBACK globalOnEvent(HWND Handle, UINT Message, WPARAM wParam, LPARAM lParam); 

private:
	std::string mClassName;
	HWND mWndHandle;
	bool mRunning;
	Game& mGame;
};

